
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import '@/style/reset.scss'
import App from './App.vue'
import router from './router'
//引入element-ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入全局组件 将顶部、底部注册为全局组件
import HospitalTop from '@/components/hospital_top/index.vue';
import HospitalBottom from '@/components/hospital_bottom/index.vue';
//国际化文件
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import Login from '@/components/login/index.vue'
import '@/permisstion.ts'

const app = createApp(App)
// 注册为全局组件
app.component('HospitalTop', HospitalTop)
app.component('HospitalBottom', HospitalBottom)
app.component('Login', Login)

app.use(ElementPlus, {
    locale: zhCn,
})
app.use(createPinia())
app.use(router)

app.mount('#app')
